<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">银行卡限额管理</h1>
</div>

<div class="wrapper-md">
  <div class="panel panel-default">
    <div class="panel-heading">
      配置银行卡限额信息
    </div>
    <toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
    <div class="panel-body b-b b-light">
      <p>
        <select class="form-control forminfo inline w-sm" name="RepaymentTypeID" ng-model="inpvalue.num">
          <option value="1">银行名称</option>
          <option value="2">银行卡编号</option>
        </select>
        <input type="text" ng-model="bindname" class="form-control input-sm w-sm inline m-r">
        <button class="btn btn-info btn-addon" ng-if='!graybtn' ng-click="querybank()">查询</button>
        <button class="btn btn-light btn-addon" ng-if='graybtn'>查询</button>
      </p>
      <p>
        <a class="btn btn-info btn-addon" ng-click="addAd()">添加</a>
        <a class="btn btn-info btn-addon" ng-click="delcache()">删除缓存</a>
      </p>
    </div>
    <div class="table-responsive">
      <table id="tab" class="table table-striped m-b-none">
        <thead>
          <tr>
            <th style="width:5%">ID</th>
            <th style="width:8%">银行卡名称</th>
            <th style="width:8%">银行卡编码</th>
            <th style="width:15%">银行卡logo</th>
            <th style="width:20%">限额</th>
            <th style="width:20%">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-if="GetBankList==''">
            <td colspan="9">当前无任何数据</td>
          </tr>
          <tr ng-repeat="list in GetBankList track by $index">
            <td ng-bind="$index+1"></td>
            <td ng-bind="list.BankName"></td>
            <td ng-bind="list.BankCode"></td>
            <td><img style="width: 50px" ng-src="{{imgurl+list.BankCode+'.png'}}"></td>
            <td>单笔限额{{list.SinglePrice}}，每日限额{{list.DayPrice}} <span ng-if="list.MonthPrice">每月限额{{list.MonthPrice}}</span></td>
            <td>
              <button class="btn m-b-xs btn-sm btn-info" style="margin-right:10px;" ng-click="editbanklimit(list.Id)">修改</button>
              <button class="btn m-b-xs btn-sm btn-info" style="margin-right:10px;" ng-click="deldata(list.Id)">删除</button>
              <button class="btn m-b-xs btn-sm  {{$index?'btn-info':'btn-defult'}}" style="margin-right:10px;" ng-click="getup(list.Id,$index)">上升</button>
              <button class="btn m-b-xs btn-sm {{$last?'btn-defult':'btn-info'}}" style="margin-right:10px;" ng-click="getdown(list.Id,$index)">下降</button>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
  <div class="btn-group pull-right">
    <button type="button" class="btn btn-default" ng-click="prev()"><font><font>上一页</font></font></button>
    <button type="button" class="btn btn-default btnNum">{{searchbankcard.Index}}</button>
    <button type="button" class="btn btn-default" ng-click="next()"><font><font>下一页</font></font></button>
    <span class="btn btn-default">共<span ng-bind="QueryListTotal+'条数据'"></span></span>
  </div>